package databases

import (
	"time"
)

type Tpo_Sys_Departments struct {
	DeparentId      int64 `xorm:"pk autoincr"`
	SortNo          int64
	Name            string
	ParentId        int64
	Remark          int64 `json:"-"`
	CreateId        int64 `json:"-"`
	IsDelete        int32 `json:"-"`
	GroupIndex      int64
	Group_code      string `json:"group_code"`
	CrmGroupId      int64
	Leader_id       string    `json:"leader_id"`
	CreateTime      time.Time `xorm:"DateTime created"`
	CourseTypes     string
	ErpDeparentId   string
	CampusType      int32
	CampusLevelType int32
}

type DepartLeader struct {
	Tpo_Sys_Departments `xorm:"extends"`
	LeaderUserList      `xorm:"extends"`
}

type LeaderUserList struct {
	UserName string
	Email    string
	Mobile   string
}

func (DepartLeader) TableName() string {
	return "Tpo_Sys_Departments"
}
